package org.jason.model.interaction.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("加载文章评论")
public class LoadCommentsDto {

    @ApiModelProperty("文章id")
    @NotNull(message = "文章id不能为空")
    private Integer articleId;

    @ApiModelProperty("评论类型 0：按热度 1：按时间")
    @Min(value = 0, message = "评论类型不合法")
    @Max(value = 1, message = "评论类型不合法")
    private Integer type = 0;
}
